package com.duan.blog;
import com.duan.blog.common.RespUtil;
import com.duan.blog.service.UserService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest
public class test {
    @Autowired
    UserService userService;

    @Test
    public void test1(){
        System.out.println(RespUtil.success(userService.selectUserById(1)));

    }
}
